package com.luck.pf.framework.logic;

import java.io.Serializable;

/**
 * 说明:
 * Copyright: Copyright (c) 2010
 * @author zhangwr 2011-8-9 下午03:06:31
 * @version 1.0
 */
public interface IBaseLogic {
	public <T> T load(Class<T> entityClass, Serializable id);
	public <T> T get(Class<T> entityClass,Serializable id);
	public void save(Object obj);
	/**
	 * 增加对象，返回主键Id
	 */
	public Serializable add(Object obj);
	/**
	 * 删除对象.
	 */
	public void delete(Object o);
	/**
	 * 根据ID删除对象.
	 */
	public <T> void deleteById(Class<T> entityClass, Serializable id);
}
